package middleware

import "regexp"

func IsAdminPath(urlPath string) bool {
	regex := regexp.MustCompile(`/api/.*/admin`)

	// 执行匹配
	match := regex.FindString(urlPath)
	return match != ""
}
